/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.entities;

import java.io.Serializable;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author Min Tun
 */

@XmlType(name="post")
@XmlAccessorType(XmlAccessType.FIELD)
public class PostType implements Serializable {
    @XmlElement(required=true)
    private String id;

    @XmlElement(required=true)
    private String title;

    @XmlElement(required=true)
    private String description;

    @XmlElement(required=true)
    private Date postedDate;

    @XmlElement(required=true, name="poster")
    private String member;

    @XmlElement(required=true)
    private int priorityID;

    @XmlElement(required=true)
    private String address;

    public PostType() {
    }

    public String getAddress() {
        return address;
    }

    public String getDescription() {
        return description;
    }

    public String getId() {
        return id;
    }

    public String getMember() {
        return member;
    }

    public Date getPostedDate() {
        return postedDate;
    }

    public int getPriorityID() {
        return priorityID;
    }

    public String getTitle() {
        return title;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setMember(String member) {
        this.member = member;
    }

    public void setPostedDate(Date postedDate) {
        this.postedDate = postedDate;
    }

    public void setPriorityID(int priorityID) {
        this.priorityID = priorityID;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
